package com.itheima.clientAndService01;

import java.io.*;

public class IOClass09 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("day12\\a.txt"));
        bw.write("黑马程序员");
        bw.newLine();
        bw.write("abcdef");
        bw.newLine();
        String str = "123456789";
        bw.write(str,3,6);
        bw.close();

        BufferedReader br = new BufferedReader(new FileReader("day12\\a.txt"));
        String line;
        while ((line = br.readLine()) != null) {
            System.out.println(line);
        }
        br.close();
    }
}
